﻿using MagicOnion;
using MessagePack;

namespace AllServer.Share;

public interface IMemberGrpcService :IService<IMemberGrpcService>
{
    UnaryResult<bool> IsMember(int memberId);

    UnaryResult<MemberInfo> GetMember(string userCode);
}

[MessagePackObject(true)]
public class MemberInfo
{
    public int MemberId { get; set; }
    public string MemberName { get; set; }
}